<%@ page import="java.util.List"%>
<%@ page import="gmusic.ma.bo.ArtistMABean"%>

<jsp:include page="include/entete.jsp" flush="true">
	<jsp:param name="titre" value="Metal Archives" />
	<jsp:param name="sousTitre" value="Liste des groupes" />
</jsp:include>

<br />

<table width="80%" border="0" align="center">
	<THEAD>
		<TR class="thead">
			<TH>MAID</TH>
			<TH>Artistes</TH>
			<th>GMusic</th>
		</TR>
	</THEAD>
	<tbody>
		<%
					List<ArtistMABean> artists = (List<ArtistMABean>) session
					.getAttribute("artists");
			String[] ligneCouleur = new String[] { "ligne1", "ligne2" };

			for (int i = 0; i < artists.size(); i++) {
		%>
		<tr class="<%=ligneCouleur[i%2]%>">
			<td width="80">[<%=artists.get(i).getMaid()%>]</td>
			<td><a
				href="GMusic?cmd=AfficherReleasesMA&maid=<%=artists.get(i).getMaid()%>"><%=artists.get(i).getNom().toUpperCase()%></a></td>
			<td align="center"><%=artists.get(i).existsInGM() ? "OK"
								: "<a href=\"GMusic?cmd=AjouterArtisteDepuisMA&maid="
										+ artists.get(i).getMaid()
										+ "\">Add</a>"%></td>
		</tr>
		<%
		}
		%>
	</tbody>
	<tfoot>
		<tr class="tfoot">
			<td colspan="3"><%=artists.size()%> enregistrement(s)</td>
		</tr>
	</tfoot>
</table>
<br />


<jsp:include page="include/piedPage.jsp" flush="true" />